package Week7;

import java.io.Serializable;

public class PointBuffer extends Circle implements Serializable {
	//A point buffer is defined with a point and a radius.
	//A point buffer has same characteristics as a circle.
	
	
	public PointBuffer(Point pt, double rad) {
		super(pt, rad);
	}
	
	//if the radius of the circle > than the distance from p to the userPoint then the userPoint
	//is inside the buffer
	public boolean isInside(Point userPoint){
		if (rad >= pt.getDistance(userPoint)){
			return true;
		}
		else
			return false;
		

	}
	
//	public Point getPt(){
//		return pt;
//	}
	
}
